package com.ruoyi.community.domain;

import com.fasterxml.jackson.annotation.JsonFormat;

import java.util.ArrayList;
import java.util.Date;
import java.util.List;

public class BbsArticleComment {
    private Long commentid;

    //评论人Id 评论发起人Id
    private Long commenterid;

    private Long commentedid;

    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date createtime;

    private String content;

    private Long parentcommentid;

    private Long articleid;

    private Boolean deleteflag;

    private String avatar;

    private String nickname;

    private String parentNickname;

    private Integer pageNum;

    private Integer  pageSize = 5;

    private boolean inputFlag = false;

    public BbsArticleComment() {
    }

    public BbsArticleComment(Long commentid, Long commenterid, Long commentedid, Date createtime, String content, Long parentcommentid, Long articleid, Boolean deleteflag, String avatar, String nickname, String parentNickname, boolean inputFlag, List<BbsArticleComment> replyComments, int replyCommentsCount, BbsArticleComment parentComment, Integer communityid) {
        this.commentid = commentid;
        this.commenterid = commenterid;
        this.commentedid = commentedid;
        this.createtime = createtime;
        this.content = content;
        this.parentcommentid = parentcommentid;
        this.articleid = articleid;
        this.deleteflag = deleteflag;
        this.avatar = avatar;
        this.nickname = nickname;
        this.parentNickname = parentNickname;
        this.inputFlag = inputFlag;
        this.replyComments = replyComments;
        this.replyCommentsCount = replyCommentsCount;
        this.parentComment = parentComment;
        this.communityid = communityid;
    }

    public boolean isInputFlag() {
        return inputFlag;
    }

    public void setInputFlag(boolean inputFlag) {
        this.inputFlag = inputFlag;
    }

    public String getNickname() {
        return nickname;
    }

    public void setNickname(String nickname) {
        this.nickname = nickname;
    }

    public String getParentNickname() {
        return parentNickname;
    }

    public void setParentNickname(String parentNickname) {
        this.parentNickname = parentNickname;
    }

    private List<BbsArticleComment> replyComments = new ArrayList<BbsArticleComment>();

    private int replyCommentsCount;

    private BbsArticleComment parentComment;

    private Integer communityid;


    public Integer getCommunityid() {
        return communityid;
    }

    public void setCommunityid(Integer communityid) {
        this.communityid = communityid;
    }


    public String getAvatar() {
        return avatar;
    }

    public void setAvatar(String avatar) {
        this.avatar = avatar;
    }

    public List<BbsArticleComment> getReplyComments() {
        return replyComments;
    }

    public void setReplyComments(List<BbsArticleComment> replyComments) {
        this.replyComments = replyComments;
    }

    public BbsArticleComment getParentComment() {
        return parentComment;
    }

    public void setParentComment(BbsArticleComment parentComment) {
        this.parentComment = parentComment;
    }

    public Long getCommentid() {
        return commentid;
    }

    public void setCommentid(Long commentid) {
        this.commentid = commentid;
    }

    public Long getCommenterid() {
        return commenterid;
    }

    public void setCommenterid(Long commenterid) {
        this.commenterid = commenterid;
    }

    public Long getCommentedid() {
        return commentedid;
    }

    public void setCommentedid(Long commentedid) {
        this.commentedid = commentedid;
    }

    public Date getCreatetime() {
        return createtime;
    }

    public void setCreatetime(Date createtime) {
        this.createtime = createtime;
    }

    public String getContent() {
        return content;
    }

    public void setContent(String content) {
        this.content = content == null ? null : content.trim();
    }

    public Long getParentcommentid() {
        return parentcommentid;
    }

    public void setParentcommentid(Long parentcommentid) {
        this.parentcommentid = parentcommentid;
    }

    public Long getArticleid() {
        return articleid;
    }

    public void setArticleid(Long articleid) {
        this.articleid = articleid;
    }

    public Boolean getDeleteflag() {
        return deleteflag;
    }

    public void setDeleteflag(Boolean deleteflag) {
        this.deleteflag = deleteflag;
    }

    public int getReplyCommentsCount() {
        return replyCommentsCount;
    }

    public void setReplyCommentsCount(int replyCommentsCount) {
        this.replyCommentsCount = replyCommentsCount;
    }

    public Integer getPageNum() {
        return pageNum;
    }

    public void setPageNum(Integer pageNum) {
        this.pageNum = pageNum;
    }

    public Integer getPageSize() {
        return pageSize;
    }

    public void setPageSize(Integer pageSize) {
        this.pageSize = pageSize;
    }
}